Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array
      // default: [{
      //     img: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=156585113304d5&di=c8607ffc4906f6b9cca1eb5ca8ee2f08&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F908fa0ec08fa513db777cf78376d55fbb3fbd9b3.jpg",
      //     title: "某某某医院",
      //     time: "2019/03/02",
      //     address: "什么什么地方"
      //   },
      //   {
      //     img: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1565851133045&di=c8607ffc4906f6b9cca1eb5ca8ee2f08&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F908fa0ec08fa513db777cf78376d55fbb3fbd9b3.jpg",
      //     title: "某某某医院",
      //     time: "2019/03/02",
      //     address: "什么什么地方"
      //   }
      // ]
    }
  },

  /**
   * 组件的初始数据
   */
  data: {},
  /**
   * 组件的方法列表
   */
  methods: {
    handleClick: function(e) {
      var dataset = e.currentTarget.dataset;
      var item = dataset.item;
      var index = dataset.index;
      var obj = {};
      obj.item = item;
      obj.index = index;
      this.triggerEvent("handleClick", obj);
    }
  }
})